package com.xuecheng.manage_course.controller;

import com.xuecheng.framework.domain.course.CourseBase;
import com.xuecheng.manage_course.service.CourseBaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jl
 * @description
 * @date 2019-08-22 15:43
 */
@RestController
@RequestMapping("/course")
public class CourseBaseController {
    @Autowired
    private CourseBaseService courseBaseService;

    @GetMapping("/courseBase/{id}")
    public CourseBase getById(@PathVariable("id") String id) {
        return courseBaseService.getById(id);
    }
}
